import Axios from 'axios'

const state = {
	multipleSelection: [],
	selectRowId: []
}

const mutations = {
	multipleSelection(state, arr) {
        state.multipleSelection.length = 0;
        state.selectRowId.length = 0;
        if(arr.length > 0) {
            arr.forEach(item => {
                state.multipleSelection.push(item);
                state.selectRowId.push(item['id']);
            });
        } else {
            state.multipleSelection.splice(0);
            state.selectRowId.splice(0);
        }
    }
}

const actions = {

}


export default {
	namespaced: true,
	state,
	mutations,
	actions
}